<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">


<h:head>
<link href="../resources/css/user.css" rel="stylesheet" type="text/css" />
</h:head>

<h:body>
<div class="contenitore">
 		<div class="riga">
  			<ui:include src="../webApp/headerUtente.xhtml" />
 		</div>
 		
 		<div class="riga">
  			<div class="colonna-2-1">
  				<div id="standard">
  					<ui:include src="../webApp/ricercaPacchetti.xhtml" />
   				</div>
   			  <div id="standard1">
   			      <ui:include src="../webApp/ricercaCodiceAmico.xhtml" />
   			  </div>
  			</div>
  			<div class="colonna-2-2">
				<div id="standard">
				<h:form>  
					<p:dataTable var="o" value="#{risultatiPacchettoBean.ricercaBean.packages}">  
       				  
       					<p:column headerText="Nome">  
            				<h:outputText value="#{o.nome}" />  
        				</p:column>  
  
        				<p:column headerText="Descrizione">  
            				<h:outputText value="#{o.descrizione}" />  
        				</p:column>  
  
        				<p:column headerText="Prezzo">  
            				<h:outputText value="#{o.prezzo}" />  
        				</p:column>  
        				
        				<p:column>
        					<p:commandButton value="Personalizza" action="#{infoPacchettoBean.outcome()}">	
    			        		<f:param name="action" value="#{o.id}" />
    			    		</p:commandButton>
    			    	</p:column>
    			    	<p:column>
							<p:commandButton value="Compra" action="#{infoPacchettoBean.outcome1()}">	
							  <f:param name="action1" value="#{o.id}" />
    			    		</p:commandButton>		 
    					</p:column>		
        				
        
    				</p:dataTable>  
				</h:form> 
  				</div>
  			</div>
  			
  				<div class="colonna-2-3">
                    <ui:include src="../webApp/pacchettiComprati.xhtml" />
  			    </div>
 		</div>
	</div>


</h:body>
</html>